package com.xn.app.muying.activity;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;

import com.xn.app.muying.R;

/**
 * Created by Administrator on 2016/11/1.
 */
public class MonitorSelectActivity extends AppCompatActivity implements View.OnClickListener {

    private Button zizhu_btn;
    private Button shishi_btn;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_monitorselect);
        zizhu_btn = (Button) findViewById(R.id.activity_monitorselect_zizhu);
        shishi_btn = (Button) findViewById(R.id.activity_monitorselect_shishi);
        zizhu_btn.setOnClickListener(this);
        shishi_btn.setOnClickListener(this);
    }

    @Override
    public void onClick(View view) {
        Intent intent = new Intent();
        switch (view.getId()){
            case R.id.activity_monitorselect_shishi:
                intent.setClass(MonitorSelectActivity.this,MonitorActivity.class);
                startActivity(intent);
                break;

            case R.id.activity_monitorselect_zizhu:
                intent.setClass(MonitorSelectActivity.this,MonitorActivity.class);
                startActivity(intent);
                break;
        }
    }
}
